/**
 * Created by Dalyn on 2017/3/16.
 */
import Relay from "react-relay";

export default class deleteMessagesMutation extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { deleteMessages }`;
    }

    getVariables() {
        return {
            argsInput: {
              arr: this.props.arr
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on deleteMessagesPayload {
            deleteMessages {
                errorCode
                value
                totalResult
                id

            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
                fragment on deleteMessagesPayload {
                    deleteMessages {
                        errorCode
                        value
                        totalResult
                        id

                    }
                }
            `]
        }];
    }

}
